package com.bjqh.edu.Bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by Administrator on 2017/10/20.
 */

public class Class implements Parcelable {

    /**
     * msg : success
     * status : 200
     * rows : [{"total":"","stime":1508398098000,"studentneeddetectdevice":1,"admincode":"eqg94a","type":2,"studengcode":"abcpwz","islangterm":0,"rows":"","id":"17101943382441","sign":"","title":"fasdfasf","preentertime":1800,"token":"","teacherneeddetectdevice":1,"etime":1508401701000,"page":"","tid":6,"maxsusers":6,"teahcercode":"k4dqwb","teacher":{"total":"","sex":"","weight":"","cardimg":"","cardnum":"","nickname":"11","rname":"","passWord":"","header":"","rows":"","course":"","id":6,"time":"","school":"","invitecode":"","rid":"","page":"","age":111,"name":"马林","role":"","gradeid":"","teacher":"","mobile":""},"speaakcameraturnon":1},{"total":"","stime":1508397851000,"studentneeddetectdevice":1,"admincode":"r3d2zf","type":2,"studengcode":"u5ff2m","islangterm":0,"rows":"","id":"17101943384488","sign":"","title":"sddsafa","preentertime":1800,"token":"","teacherneeddetectdevice":1,"etime":1508401453000,"page":"","tid":7,"maxsusers":3,"teahcercode":"abc5vb","teacher":{"total":"","sex":"","weight":"","cardimg":"","cardnum":"","nickname":"","rname":"","passWord":"","header":"","rows":"","course":"","id":7,"time":"","school":"","invitecode":"","rid":"","page":"","age":"","name":"弗","role":"","gradeid":"","teacher":"","mobile":""},"speaakcameraturnon":1},{"total":"","stime":1508382148000,"studentneeddetectdevice":1,"admincode":"2abphb","type":1,"studengcode":"g795wa","islangterm":0,"rows":"","id":"17101943464329","sign":"","title":"dddasd","preentertime":1800,"token":"","teacherneeddetectdevice":1,"etime":1508383187000,"page":"","tid":6,"maxsusers":1,"teahcercode":"25wmfa","teacher":{"total":"","sex":"","weight":"","cardimg":"","cardnum":"","nickname":"11","rname":"","passWord":"","header":"","rows":"","course":"","id":6,"time":"","school":"","invitecode":"","rid":"","page":"","age":111,"name":"马林","role":"","gradeid":"","teacher":"","mobile":""},"speaakcameraturnon":1},{"total":"","stime":1508382258000,"studentneeddetectdevice":1,"admincode":"7sn6zx","type":1,"studengcode":"c7pjae","islangterm":0,"rows":"","id":"17101943464345","sign":"","title":"sss","preentertime":1800,"token":"","teacherneeddetectdevice":1,"etime":1508383173000,"page":"","tid":8,"maxsusers":1,"teahcercode":"jngu4d","teacher":{"total":"","sex":"","weight":"","cardimg":"","cardnum":"","nickname":"","rname":"","passWord":"","header":"","rows":"","course":"","id":8,"time":"","school":"","invitecode":"","rid":"","page":"","age":"","name":"弗","role":"","gradeid":"","teacher":"","mobile":""},"speaakcameraturnon":1},{"total":"","stime":1508382614000,"studentneeddetectdevice":1,"admincode":"jn24zs","type":1,"studengcode":"b5h4e5","islangterm":0,"rows":"","id":"17101947644040","sign":"","title":"sddaf","preentertime":1800,"token":"","teacherneeddetectdevice":1,"etime":1508386216000,"page":"","tid":36,"maxsusers":1,"teahcercode":"6fk93u","teacher":{"total":"","sex":"","weight":"","cardimg":"","cardnum":"","nickname":"哈同","rname":"","passWord":"","header":"","rows":"","course":"","id":36,"time":"","school":"","invitecode":"","rid":"","page":"","age":22,"name":"礼拜天","role":"","gradeid":"","teacher":"","mobile":""},"speaakcameraturnon":1}]
     */

    private String msg;
    private int status;
    private List<RowsBean> rows;

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public List<RowsBean> getRows() {
        return rows;
    }

    public void setRows(List<RowsBean> rows) {
        this.rows = rows;
    }

    public static class RowsBean implements Parcelable {
        /**
         * total : ""
         * stime : 1508398098000
         * studentneeddetectdevice : 1
         * admincode : eqg94a
         * type : 2
         * studengcode : abcpwz
         * islangterm : 0
         * rows : ""
         * id : 17101943382441
         * sign : ""
         * title : fasdfasf
         * preentertime : 1800
         * token : ""
         * teacherneeddetectdevice : 1
         * etime : 1508401701000
         * page : ""
         * tid : 6
         * maxsusers : 6
         * teahcercode : k4dqwb
         * teacher : {"total":"","sex":"","weight":"","cardimg":"","cardnum":"","nickname":"11","rname":"","passWord":"","header":"","rows":"","course":"","id":6,"time":"","school":"","invitecode":"","rid":"","page":"","age":111,"name":"马林","role":"","gradeid":"","teacher":"","mobile":""}
         * speaakcameraturnon : 1
         */

        private String total;
        private long stime;
        private int studentneeddetectdevice;
        private String admincode;
        private int type;
        private String studengcode;
        private int islangterm;
        private String rows;
        private String id;
        private String sign;
        private String title;
        private int preentertime;
        private String token;
        private int teacherneeddetectdevice;
        private long etime;
        private String page;
        private int tid;
        private int maxsusers;
        private String teahcercode;
        private TeacherBean teacher;
        private int speaakcameraturnon;

        public String getTotal() {
            return total;
        }

        public void setTotal(String total) {
            this.total = total;
        }

        public long getStime() {
            return stime;
        }

        public void setStime(long stime) {
            this.stime = stime;
        }

        public int getStudentneeddetectdevice() {
            return studentneeddetectdevice;
        }

        public void setStudentneeddetectdevice(int studentneeddetectdevice) {
            this.studentneeddetectdevice = studentneeddetectdevice;
        }

        public String getAdmincode() {
            return admincode;
        }

        public void setAdmincode(String admincode) {
            this.admincode = admincode;
        }

        public int getType() {
            return type;
        }

        public void setType(int type) {
            this.type = type;
        }

        public String getStudengcode() {
            return studengcode;
        }

        public void setStudengcode(String studengcode) {
            this.studengcode = studengcode;
        }

        public int getIslangterm() {
            return islangterm;
        }

        public void setIslangterm(int islangterm) {
            this.islangterm = islangterm;
        }

        public String getRows() {
            return rows;
        }

        public void setRows(String rows) {
            this.rows = rows;
        }

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getSign() {
            return sign;
        }

        public void setSign(String sign) {
            this.sign = sign;
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public int getPreentertime() {
            return preentertime;
        }

        public void setPreentertime(int preentertime) {
            this.preentertime = preentertime;
        }

        public String getToken() {
            return token;
        }

        public void setToken(String token) {
            this.token = token;
        }

        public int getTeacherneeddetectdevice() {
            return teacherneeddetectdevice;
        }

        public void setTeacherneeddetectdevice(int teacherneeddetectdevice) {
            this.teacherneeddetectdevice = teacherneeddetectdevice;
        }

        public long getEtime() {
            return etime;
        }

        public void setEtime(long etime) {
            this.etime = etime;
        }

        public String getPage() {
            return page;
        }

        public void setPage(String page) {
            this.page = page;
        }

        public int getTid() {
            return tid;
        }

        public void setTid(int tid) {
            this.tid = tid;
        }

        public int getMaxsusers() {
            return maxsusers;
        }

        public void setMaxsusers(int maxsusers) {
            this.maxsusers = maxsusers;
        }

        public String getTeahcercode() {
            return teahcercode;
        }

        public void setTeahcercode(String teahcercode) {
            this.teahcercode = teahcercode;
        }

        public TeacherBean getTeacher() {
            return teacher;
        }

        public void setTeacher(TeacherBean teacher) {
            this.teacher = teacher;
        }

        public int getSpeaakcameraturnon() {
            return speaakcameraturnon;
        }

        public void setSpeaakcameraturnon(int speaakcameraturnon) {
            this.speaakcameraturnon = speaakcameraturnon;
        }

        public static class TeacherBean implements Parcelable {
            /**
             * total : ""
             * sex : ""
             * weight : ""
             * cardimg : ""
             * cardnum : ""
             * nickname : 11
             * rname : ""
             * passWord : ""
             * header : ""
             * rows : ""
             * course : ""
             * id : 6
             * time : ""
             * school : ""
             * invitecode : ""
             * rid : ""
             * page : ""
             * age : 111
             * name : 马林
             * role : ""
             * gradeid : ""
             * teacher : ""
             * mobile : ""
             */

            private String total;
            private String sex;
            private String weight;
            private String cardimg;
            private String cardnum;
            private String nickname;
            private String rname;
            private String passWord;
            private String header;
            private String rows;
            private String course;
            private int id;
            private String time;
            private String school;
            private String invitecode;
            private String rid;
            private String page;
            private int age;
            private String name;
            private String role;
            private String gradeid;
            private String teacher;
            private String mobile;

            public String getTotal() {
                return total;
            }

            public void setTotal(String total) {
                this.total = total;
            }

            public String getSex() {
                return sex;
            }

            public void setSex(String sex) {
                this.sex = sex;
            }

            public String getWeight() {
                return weight;
            }

            public void setWeight(String weight) {
                this.weight = weight;
            }

            public String getCardimg() {
                return cardimg;
            }

            public void setCardimg(String cardimg) {
                this.cardimg = cardimg;
            }

            public String getCardnum() {
                return cardnum;
            }

            public void setCardnum(String cardnum) {
                this.cardnum = cardnum;
            }

            public String getNickname() {
                return nickname;
            }

            public void setNickname(String nickname) {
                this.nickname = nickname;
            }

            public String getRname() {
                return rname;
            }

            public void setRname(String rname) {
                this.rname = rname;
            }

            public String getPassWord() {
                return passWord;
            }

            public void setPassWord(String passWord) {
                this.passWord = passWord;
            }

            public String getHeader() {
                return header;
            }

            public void setHeader(String header) {
                this.header = header;
            }

            public String getRows() {
                return rows;
            }

            public void setRows(String rows) {
                this.rows = rows;
            }

            public String getCourse() {
                return course;
            }

            public void setCourse(String course) {
                this.course = course;
            }

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public String getTime() {
                return time;
            }

            public void setTime(String time) {
                this.time = time;
            }

            public String getSchool() {
                return school;
            }

            public void setSchool(String school) {
                this.school = school;
            }

            public String getInvitecode() {
                return invitecode;
            }

            public void setInvitecode(String invitecode) {
                this.invitecode = invitecode;
            }

            public String getRid() {
                return rid;
            }

            public void setRid(String rid) {
                this.rid = rid;
            }

            public String getPage() {
                return page;
            }

            public void setPage(String page) {
                this.page = page;
            }

            public int getAge() {
                return age;
            }

            public void setAge(int age) {
                this.age = age;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public String getRole() {
                return role;
            }

            public void setRole(String role) {
                this.role = role;
            }

            public String getGradeid() {
                return gradeid;
            }

            public void setGradeid(String gradeid) {
                this.gradeid = gradeid;
            }

            public String getTeacher() {
                return teacher;
            }

            public void setTeacher(String teacher) {
                this.teacher = teacher;
            }

            public String getMobile() {
                return mobile;
            }

            public void setMobile(String mobile) {
                this.mobile = mobile;
            }

            @Override
            public int describeContents() {
                return 0;
            }

            @Override
            public void writeToParcel(Parcel dest, int flags) {
                dest.writeString(this.total);
                dest.writeString(this.sex);
                dest.writeString(this.weight);
                dest.writeString(this.cardimg);
                dest.writeString(this.cardnum);
                dest.writeString(this.nickname);
                dest.writeString(this.rname);
                dest.writeString(this.passWord);
                dest.writeString(this.header);
                dest.writeString(this.rows);
                dest.writeString(this.course);
                dest.writeInt(this.id);
                dest.writeString(this.time);
                dest.writeString(this.school);
                dest.writeString(this.invitecode);
                dest.writeString(this.rid);
                dest.writeString(this.page);
                dest.writeInt(this.age);
                dest.writeString(this.name);
                dest.writeString(this.role);
                dest.writeString(this.gradeid);
                dest.writeString(this.teacher);
                dest.writeString(this.mobile);
            }

            public TeacherBean() {
            }

            protected TeacherBean(Parcel in) {
                this.total = in.readString();
                this.sex = in.readString();
                this.weight = in.readString();
                this.cardimg = in.readString();
                this.cardnum = in.readString();
                this.nickname = in.readString();
                this.rname = in.readString();
                this.passWord = in.readString();
                this.header = in.readString();
                this.rows = in.readString();
                this.course = in.readString();
                this.id = in.readInt();
                this.time = in.readString();
                this.school = in.readString();
                this.invitecode = in.readString();
                this.rid = in.readString();
                this.page = in.readString();
                this.age = in.readInt();
                this.name = in.readString();
                this.role = in.readString();
                this.gradeid = in.readString();
                this.teacher = in.readString();
                this.mobile = in.readString();
            }

            public static final Creator<TeacherBean> CREATOR = new Creator<TeacherBean>() {
                @Override
                public TeacherBean createFromParcel(Parcel source) {
                    return new TeacherBean(source);
                }

                @Override
                public TeacherBean[] newArray(int size) {
                    return new TeacherBean[size];
                }
            };
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(this.total);
            dest.writeLong(this.stime);
            dest.writeInt(this.studentneeddetectdevice);
            dest.writeString(this.admincode);
            dest.writeInt(this.type);
            dest.writeString(this.studengcode);
            dest.writeInt(this.islangterm);
            dest.writeString(this.rows);
            dest.writeString(this.id);
            dest.writeString(this.sign);
            dest.writeString(this.title);
            dest.writeInt(this.preentertime);
            dest.writeString(this.token);
            dest.writeInt(this.teacherneeddetectdevice);
            dest.writeLong(this.etime);
            dest.writeString(this.page);
            dest.writeInt(this.tid);
            dest.writeInt(this.maxsusers);
            dest.writeString(this.teahcercode);
            dest.writeParcelable(this.teacher, flags);
            dest.writeInt(this.speaakcameraturnon);
        }

        public RowsBean() {
        }

        protected RowsBean(Parcel in) {
            this.total = in.readString();
            this.stime = in.readLong();
            this.studentneeddetectdevice = in.readInt();
            this.admincode = in.readString();
            this.type = in.readInt();
            this.studengcode = in.readString();
            this.islangterm = in.readInt();
            this.rows = in.readString();
            this.id = in.readString();
            this.sign = in.readString();
            this.title = in.readString();
            this.preentertime = in.readInt();
            this.token = in.readString();
            this.teacherneeddetectdevice = in.readInt();
            this.etime = in.readLong();
            this.page = in.readString();
            this.tid = in.readInt();
            this.maxsusers = in.readInt();
            this.teahcercode = in.readString();
            this.teacher = in.readParcelable(TeacherBean.class.getClassLoader());
            this.speaakcameraturnon = in.readInt();
        }

        public static final Creator<RowsBean> CREATOR = new Creator<RowsBean>() {
            @Override
            public RowsBean createFromParcel(Parcel source) {
                return new RowsBean(source);
            }

            @Override
            public RowsBean[] newArray(int size) {
                return new RowsBean[size];
            }
        };
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.msg);
        dest.writeInt(this.status);
        dest.writeList(this.rows);
    }

    public Class() {
    }

    protected Class(Parcel in) {
        this.msg = in.readString();
        this.status = in.readInt();
        this.rows = new ArrayList<RowsBean>();
        in.readList(this.rows, RowsBean.class.getClassLoader());
    }

    public static final Parcelable.Creator<Class> CREATOR = new Parcelable.Creator<Class>() {
        @Override
        public Class createFromParcel(Parcel source) {
            return new Class(source);
        }

        @Override
        public Class[] newArray(int size) {
            return new Class[size];
        }
    };
}
